home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
comm
/
tcp
/
ATCP_sdk_40_gc.lha
/
AmiTCP-4.0
/
README.gcc
< prev
Wrap
Text File
|
1995-06-27
|
3KB
|
62 lines
This code is strictly BETA!!. It works with MuiADT and Pine,httpd but does not
guarantee it will work with anything else. You are free to modify/correct the code as
long as you mail me the changes.
This compiles with gcc only!! Almost all of the SASC stuff was removed. If you
want to compile with SASC, get the original API archive.
This archive includes the src+include+extras for the new amitcp-gcc library only plus
the old archive I uploaded.
The format of the archive has changed. People complained about where the headers go.
I reorganized the include directories to comply with the GCC setup. Also I completely
recompiled the archive to make sure things did compile. Some people complained about
declarations mishaps. I think they are all vanished now.
Good news! THE NEW CODE DOES WORK WITH SERVERS!!. I have compiled imapd and httpd1.4.1
successfully with a couple of additions mainly:
int s=init_inet_daemon();
set_socket_stdio(s);
at the beginning of main().
Look out for the ReleaseSocket/ReleaseCopyofSocket function. They might not
work at all. I have not tested them since UNIX don't have equivalent calls.
Also you cannot do a select() between sockets and nonsockets. For sockets use
WaitSelect() as usual.
I found 2 MISTAKES in the archive. The first is ug_SetupContextTags(). It does
NOT take a program name argument. Also no syslog() function was supplied. I
made one using vprintf().
Enclosed are modified gcc include files in the directory gnu/include and
gnu/os-include. You can copy over the ones in gnu:include/. These includes are
based upon the ones found in gcc263inclib.lha. If you have the new V41 includes
you will have to check what changes there are. You don't have to check the
gnu/os-include directory since those are new files.
In the main program file, add the following line:
const char *_ProgramName = "progname";
where progname is your program name. _ProgramName is needed so that the
autoinit function can set up the syslog file correctly.
To compile, specify "-D__AMITCP__ -DNO_INLINE_STDARG" + all the other usual
entries on the commandline. To use the old socket archive (source in netlib),
add -DOLD to the commandline.
To link specify "libc.a -lnewamitcp -lamiga -lauto" + all the other usual
entries. To use the original library use "libc.a -lamitcp -lamiga -lauto".
(Someone figure out why I need to link libc.a first. Without it, things behave
very strangely or refuse to function. I think its the autoinit stuff.)
A custom version of ixemul 40.4 libc.a and ixemul.41.0 is supplied. (The 40.4 version doesn't have the wrappers for ixemul's
pseudo-TCP functions). The only thing different with the 41.0 libc.a is the deletion of fstat.o.
Happy networking.